package com.dinian.demeter.mapper;

import com.dinian.demeter.domain.Permission;
import com.dinian.demeter.domain.Role;
import com.dinian.demeter.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface PermissionMapper {

    Set<Permission> queryPermissionByRoleId(Long roleId);

    Permission queryPermissionById(Long permissionId);

    int insertPermission(Permission permission);

    void deletePermissionById(Long permissionId);

    void updatePermission(Permission permission);
}
